From https://github.com/kripken/box2d.js/
